//
//  LoginViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-4.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QuickRegisterViewController.h"
#import "RegisterViewController.h"

@class LoginViewDataSource;
@class RegisterViewController;
@class QuickRegisterViewController;
@interface LoginViewController : BaseViewController<UITextFieldDelegate>

@property (strong, nonatomic) IBOutlet UIView *contentView;
@property (strong, nonatomic) UIViewController *parentController;

@property (strong, nonatomic) RegisterViewController *registerVC;
@property (strong, nonatomic) QuickRegisterViewController *quickRegisterVC;
@property (strong, nonatomic) BaseViewController *backController;
@property (strong, nonatomic) LoginViewDataSource *dataSource;

@property (strong, nonatomic) IBOutlet UITextField *userNameTF;
@property (strong, nonatomic) IBOutlet UITextField *passwordTF;

@property (strong, nonatomic) NSString *userName;
@property (strong, nonatomic) NSString *password;

@end

@interface LoginViewDataSource : BaseDataSource

@property (nonatomic, strong) LoginViewController *viewController;

- (void)loginWithURL:(NSString *)url;

@end

